/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package erp.financeiro.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import erp.financeiro.DadosBancarios;
import erp.financeiro.TipoPessoa;
import erp.financeiro.Usuario;
import java.util.List;
import javax.persistence.Query;

/**
 *
 * @author Robert
 */
public class UsuarioDAO {
    public static Usuario getUsuariosById(Long id) {
            EntityManagerFactory emf = Persistence.createEntityManagerFactory("erpfinanceiroPU");
            EntityManager em = emf.createEntityManager();

            return (Usuario) em.find(Usuario.class, id);
    }
}
